import service from "../index"; //axios
    export  function detail(url,params={}){
        return new Promise((resolve,reject)=>{ //resolve=>成功的    reject=》失败
         service.get(url,{
             params 
         }).then(res=>{
             resolve(res)
         })
         .catch(err=>{
             reject(err)
         })
        })
     }